#ifndef __TOUCH_H
#define __TOUCH_H   

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <linux/fb.h>

#include <linux/input.h>//触摸屏的头文件

enum WARD{
    LEFT = 0,
    RIGHT = 1,
    UP = 2,
    DOWN = 3,
};

int tsFd;

int open_touch();
int touch_wait(int *x, int *y);
void close_touch();
enum WARD touch_wait_slide();

#endif